<template>
    <div class="authPermissionEdit">
        <div class="top_menu">
            <el-breadcrumb separator="/">
                <el-breadcrumb-item :to="{ path: '/' }">摄影平台</el-breadcrumb-item>
                <el-breadcrumb-item>权限管理</el-breadcrumb-item>
                <el-breadcrumb-item :to="{ path: '/auth/permission' }">操作权限</el-breadcrumb-item>
                <el-breadcrumb-item>资料编辑</el-breadcrumb-item>
            </el-breadcrumb>
        </div>
        <div class="main_content" v-loading="loading">
            <div class="control display-flex justify-content-spaceBetween align-items-center">
                <h3>{{type}}权限</h3>
                <div class="display-flex align-items-center">
                    <el-button type="primary" icon="caret-left" @click="backToPermission">返回</el-button>
                </div>
            </div>
            <el-card class="box-card">
                <div class="form">
                    <el-form :label-position="labelPosition" :model="PermissionForm" :rules="rules" ref="PermissionForm" label-width="80px" class="demo-ruleForm">
                        <el-form-item label="名称" prop="title">
                            <el-input v-model.number="PermissionForm.title"></el-input>
                        </el-form-item>
                        <el-form-item prop="controller" label="模块">
                            <el-input v-model="PermissionForm.controller"></el-input>
                        </el-form-item>
                        <el-form-item label="操作" prop="operation">
                            <el-input v-model="PermissionForm.operation"></el-input>
                        </el-form-item>
                        <el-form-item>
                            <el-button type="primary" @click="submitForm('PermissionForm')">提交</el-button>
                            <el-button @click="resetForm('PermissionForm')">重置</el-button>
                        </el-form-item>
                    </el-form>
                </div>
            </el-card>
        </div>
    </div>
</template>

<script src="../../js/auth/PermissionEdit.js"></script>